package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 销售订单交货明细详情对象 erp_sale_order_delivery_detail
 *
 * @author wutao
 * @date 2024-06-30
 */
@TableName("erp_sale_order_delivery_detail")
@ApiModel(value = "erp_sale_order_delivery_detail对象", description = "销售订单交货明细详情")
@Data
public class SaleOrderDeliveryDetailEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 交货明细详情主键id
     */
    @TableId(type = IdType.INPUT)
    private String id;

    @ApiModelProperty("交货明细id")
    @TableField("order_id")
    @Excel(name = "销售订单id")
    private String orderId;

    /**
     * 交货明细id
     */
    @ApiModelProperty("交货明细id")
    @TableField("delivery_id")
    @Excel(name = "交货明细id")
    private String deliveryId;



    /**
     * 交货地点
     */
    @ApiModelProperty("交货地点")
    @TableField("delivery_address")
    @Excel(name = "交货地点")
    private String deliveryAddress;

    /**
     * 交货地址
     */
    @ApiModelProperty("交货地址")
    @TableField("delivery_address_detail")
    @Excel(name = "交货地址")
    private String deliveryAddressDetail;

    /**
     * 要货日期
     */
    @ApiModelProperty("要货日期")
    @TableField("delivery_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "要货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryDate;

    /**
     * 计划发货日期
     */
    @ApiModelProperty("计划发货日期")
    @TableField("plan_delivery_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划发货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planDeliveryDate;

    /**
     * 运输提前期
     */
    @ApiModelProperty("运输提前期")
    @TableField("in_advance")
    @Excel(name = "运输提前期")
    private String inAdvance;

    /**
     * 销售单位
     */
    @ApiModelProperty("销售单位")
    @TableField("sale_unit")
    @Excel(name = "销售单位")
    private String saleUnit;

    /**
     * 数量
     */
    @ApiModelProperty("数量")
    @TableField("sale_num")
    @Excel(name = "数量")
    private String saleNum;

    /**
     * 是否使用
     */
    private Integer isUsed;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setDeliveryId(String deliveryId) {
        this.deliveryId = deliveryId;
    }

    public String getDeliveryId() {
        return deliveryId;
    }

    public void setDeliveryAddress(String deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public String getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddressDetail(String deliveryAddressDetail) {
        this.deliveryAddressDetail = deliveryAddressDetail;
    }

    public String getDeliveryAddressDetail() {
        return deliveryAddressDetail;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setPlanDeliveryDate(Date planDeliveryDate) {
        this.planDeliveryDate = planDeliveryDate;
    }

    public Date getPlanDeliveryDate() {
        return planDeliveryDate;
    }

    public void setInAdvance(String inAdvance) {
        this.inAdvance = inAdvance;
    }

    public String getInAdvance() {
        return inAdvance;
    }

    public void setSaleUnit(String saleUnit) {
        this.saleUnit = saleUnit;
    }

    public String getSaleUnit() {
        return saleUnit;
    }

    public void setSaleNum(String saleNum) {
        this.saleNum = saleNum;
    }

    public String getSaleNum() {
        return saleNum;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deliveryId", getDeliveryId())
                .append("deliveryAddress", getDeliveryAddress())
                .append("deliveryAddressDetail", getDeliveryAddressDetail())
                .append("deliveryDate", getDeliveryDate())
                .append("planDeliveryDate", getPlanDeliveryDate())
                .append("inAdvance", getInAdvance())
                .append("saleUnit", getSaleUnit())
                .append("saleNum", getSaleNum())
                .append("isUsed", getIsUsed())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
